#!/bin/sh
git pull
mvn clean package
rm -rf /usr/local/tomcat/webapps/backend
unzip /home/java/boyle-backend/target/boyle-backend.war -d /usr/local/tomcat/webapps/backend
rm -rf /home/resource/backend
cp -r /usr/local/tomcat/webapps/backend/resource /home/resource/backend 
/usr/local/tomcat/bin/shutdown.sh
/usr/local/tomcat/bin/startup.sh
tail -f /usr/local/tomcat/logs/catalina.out
